<%
//会员中心
layout("/inc/layout.html",{
title:'我的办件',
keywords:'我的办件',
description:'我的办件',
style:'user.css'
}){
%>
<div class="container">
    <!--用户面板-->
    <% include("/inc/user_panel.html"){} %>
    <!--快捷键-->
    <div class="row mt15 text-center">
        <% include("/inc/user_menu.html"){} %>
        <div class=" col-sm-10">
            <div class="table-responsive">
                <div class="toolBar">
                    <div class="col-sm-5 pull-right input-group">
                        <input type="text" placeholder="请输入原告身份证号搜索" class="form-control searchValue">
                        <span class="input-group-btn">
                            <button type="button" id="search" class="btn btn-primary">&nbsp;搜索</button>
                        </span>
                    </div>
                </div>
                <style>
                    .dataList tbody > tr > td {
                        font-weight: 300;
                        color: #555555;
                        vertical-align: middle;
                    }

                    .dataList tbody > tr > td label {
                        font-size: 1.25rem;
                        vertical-align: middle;
                    }

                </style>
                <table id="transactList" class="dataList"></table>
            </div>
        </div>
    </div>
</div>
<% } %>
<script>
    require(['modules/user_basic'], function (basic) {
        basic.transact();
    });

    /**
     * 列表参数代码块
     */
    function update(itemType, itemId) {
        return '<button class="invalid btn btn-default btn-xs"><i class="iconfont icon-zuofei"></i>&nbsp;作废&nbsp;</button>' +
            '<a href="#" class="update btn btn-default btn-xs"><i class="iconfont icon-bianji"></i>&nbsp;修改&nbsp;</a>'
    }

    function view(itemType, itemId) {
        return '<a href="#" class="detail btn btn-default btn-xs"><i class="iconfont icon-shiyongwendang"></i>&nbsp;详情&nbsp;</a>'
    }

    /**
     * 列表按钮参数
     */
    function operateFormatter(value, row, index) {
        console.log(row);
        var tempCode = "";
        tempCode += '<a href="/user/details?lawsuitId='+row.id+'" class="detail btn btn-default btn-xs"><i class="iconfont icon-jiufen"></i>&nbsp;详情&nbsp;</a>';
        return '<div class="btn-group">' + tempCode + '</div>'
    }

</script>
</body>
</html>